import axios from 'axios'
const service = axios.create({
  baseURL: 'https://acfun.leanapp.cn/',
  timeout: 5000 // 请求超时时间
})
// request拦截器
service.interceptors.request.use(config => {
  return config
}, error => {
  return Promise.reject(error)
})

// respone拦截器
service.interceptors.response.use(
  response => response,
  error => {
    return Promise.reject(error)
  }
)

export default service
